<template>
	<view>
		<view class="">
			<button class="popup-btn" @tap="popup_bottom()">请选择</button>
			<linkAddress ref="linkAddress" :height="height" @confirmCallback="confirmCallback()">
			</linkAddress>
		</view>
	</view>
</template>
<script>
	import linkAddress from '../../components/xuan-linkAddress/xuan-linkAddress.vue'
	export default {
		components: {
			linkAddress
		},
		data() {
			return {
              height:'',
			}
		},
		methods: {
			popup_bottom: function() {
				this.height = '550rpx';
				//显示
				this.show_popup();
			},
			show_popup: function() {
				this.$refs.linkAddress.show();
			},
			confirmCallback: function() {
				//从vuex中取到用户选择的数据
				//let ads=this.$store.state.user_address;
				//this.address=ads.province+ads.city+ads.district;
			}
		}
	}
</script>
